package com.ruoyi.dormitory.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.dormitory.domain.DormitoryItems;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * 宿舍物品Mapper接口
 * 
 * @author ruoyi
 * @date 2023-04-26
 */
@Component
@Mapper
public interface DormitoryItemsMapper extends BaseMapper<DormitoryItems>
{
    /**
     * 查询宿舍物品
     * 
     * @param itemNumber 宿舍物品主键
     * @return 宿舍物品
     */
    public DormitoryItems selectDormitoryItemsByItemNumber(Long itemNumber);

    /**
     * 查询宿舍物品列表
     * 
     * @param dormitoryItems 宿舍物品
     * @return 宿舍物品集合
     */
    public List<DormitoryItems> selectDormitoryItemsList(DormitoryItems dormitoryItems);

    /**
     * 新增宿舍物品
     * 
     * @param dormitoryItems 宿舍物品
     * @return 结果
     */
    public int insertDormitoryItems(DormitoryItems dormitoryItems);

    /**
     * 修改宿舍物品
     * 
     * @param dormitoryItems 宿舍物品
     * @return 结果
     */
    public int updateDormitoryItems(DormitoryItems dormitoryItems);

    /**
     * 删除宿舍物品
     * 
     * @param itemNumber 宿舍物品主键
     * @return 结果
     */
    public int deleteDormitoryItemsByItemNumber(Long itemNumber);

    /**
     * 批量删除宿舍物品
     * 
     * @param itemNumbers 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDormitoryItemsByItemNumbers(String[] itemNumbers);
}
